<?php
/**
 * email触发task入口
 * @author chendanming@star-net.cn
 * @copyright  ktvme. All Rights Reserved.
 * @version $Id: EmailTask.php 3 2017-05-08 03:02:47Z chendanming $
 */

namespace app\console\swooletask\task\wechat;


class WechatUserInfoTask{

    /**
     * swoole task执行触发入口
     * @param $serv
     * @param $data
     */
    public function index($serv,$data) {

        $serv->task([
            'class'  => '\app\console\swooletask\logic\WechatUserInfo',
            'action' => 'wechatUserInfo',
            'datas'  => $data
        ]);
    }
}
